import request from '@/utils/request'

export function Get(params) {
  return request({
    url: '/cms/api/writingstyle/',
    method: 'get',
    params: params
  })
}

export function Post(data) {
  return request({
    url: '/cms/api/writingstyle/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: JSON.stringify(data)
  })
}

export function Put(id, data) {
  return request({
    url: `/cms/api/writingstyle/${id}`,
    headers: { 'content-type': 'application/json' },
    method: 'put',
    data: JSON.stringify(data)
  })
}

export function Delete(id) {
  return request({
    url: `/cms/api/writingstyle/${id}`,
    method: 'delete'
  })
}

export function BatchDelete(data) {
  return request({
    url: '/cms/api/writingstyle_batch_delete/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: JSON.stringify(data)
  })
}
